package pub.wkq.work.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import pub.wkq.common.result.JSONResult;
import pub.wkq.work.service.ResumeService;

import javax.annotation.Resource;

/**
 * <h1>简历服务</h1>
 */
@Slf4j
@RestController
@RequestMapping("resume")
public class ResumeController {
    @Resource
    private ResumeService resumeService;

    /**
     * <h1>初始化简历</h1>
     *
     * @param userId 用户id
     */
    @GetMapping("init")
    public JSONResult initResume(@RequestParam("userId")  String userId) {
        resumeService.initResume(userId);
        return JSONResult.ok();
    }
}
